<link href="__PUBLIC__/plugins/qydui/tablegrid.css" rel="stylesheet">
<link href="__PUBLIC__/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
<script src="__PUBLIC__/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="__PUBLIC__/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="__PUBLIC__/js/mp/format.js"></script>
<script src="__PUBLIC__/plugins/qydui/tablegrid.js"></script>
<script src="__PUBLIC__/js/mp/order_drawback.js"></script>
<style type="text/css">
.table td {
    vertical-align:top !important;
}
</style>
<script>
var Param = <?php echo json_encode( $param ) ?> ;
$(function(){
    Drawback.init(<?php echo json_encode( $config ) ?>);
});

</script>

<div class="page-content">
    <ol class="breadcrumb">
        <li><a href="<?php echo $home_url ?>">首页</a></li>
        <li><a href="<?php echo $catalog_url ?>"><?php echo $catalog_name ?></a></li>
        <li class="active"><?php echo $module_name ?></li>
    </ol>
    
    <div class="page-content-inner">
        
        <div class="portlet blue" id="read_modal">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-file-text-o "></i>
                    <?php echo $module_name ?> 
                </div>
            </div>
            <div class="portlet-body ">
                
                <form class="form-inline" id="search-form" method="post" >
                    <div class="form-group" style="margin-bottom:16px;">
                        <label for="keyword">关键字：</label>
                        <input type="text" class="form-control" id="keyword" placeholder="订单号" >
                    </div>
                    <div class="form-group" style="margin-bottom:16px;">
                        <label for="timeFrom">截止日期：</label>
                        <input type="text" class="form-control dtp" id="timeTo" placeholder="截止日期">
                    </div>
                    <div class="form-group" style="margin-bottom:16px;">
                        <label for="paytype">支付方式：</label>
                        <select id="paytype" class="form-control">
                            <option value="0" selected >不限状态</option>
                            <?php echo form_options_arr( $param['paytype'] ) ?>
                        </select>
                    </div>
                    <div class="form-group" style="margin-bottom:16px;">
                        <button type="submit" class="btn btn-primary" id="search_btn"><i class="fa fa-search"> </i> 查询</button>
                        <button type="button" class="btn btn-primary" id="export_alipay_excel_btn"><i class="fa fa-file-excel-o"> </i> 导出支付宝退款表</button>
                        <button type="button" class="btn btn-danger" id="set_drawbacked_btn"><i class="fa fa-check"> </i> 退款完成</button>
                    </div>
                </form>

                <div class="table-responsive">
                    <table id="data_table" class="table table-striped table-hover table-condensed">
                        <thead>
                            <tr>
                                <th width="220" data-field="orderNumber" data-formatter="format_order_number">订单号/场馆</th>
                                <th width="180" data-field="orderTime" data-formatter="format_ordertime">订单时间</th>
                                <th width="140" data-field="orderTime" data-formatter="format_exchangecode">验证码</th>
                                <th width="140" data-field="userName" data-formatter="format_userinfo">用户信息</th>
                                <th width="120" data-field="paySum" data-formatter="format_paysum">金额/支付</th>
                                <th width="80" data-field="isPay" data-formatter="format_yesno">是否支付</th>
                                <th width="120" data-field="status" data-formatter="format_status">订单状态</th>
                                <th width="200" data-field="remark">备注</th>
                                <th width="100" data-field="optBtn" data-formatter="format_opt"></th>
                                <th>&nbsp;</th>
                            </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

